<?php
/**
 * Created by PhpStorm.
 * User: 徐州
 * Date: 2017/5/4
 * Time: 13:29
 */

namespace App\Contracts\Repositories\VoteCandidate;

interface VoteCandidateRepository
{
    public function getAll();

    public function updateResourceUrl($resourceID, $resourceUrl);
    public function getTotalNumberOfVotes($conditions);
    public function getTopItemsByConditions($conditions);
    public function getGroupIdByActivityId($activity_id, $limit);
    public function getIdByActivityId($activity_id);
    public function getItemsByConditions($conditions, $limit_num);

    public function create($data);

    public function where($conditions);

    public function update($updates, $conditions);

    public function findById($id);

    public function getByActivityId($activityId);

    public function getItemsByGroup($groupId, $activityId, $limit);

    public function getMaxOrderId($groupId, $activityId);

    public function getMaxCode($activityId);
}
